//
//  DataBaseHandle.h
//  UI18_数据库第三方_练习
//
//  Created by dllo on 15/12/2.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Student;
@interface DataBaseHandle : NSObject
+ (instancetype)shareDataBase;
- (void)openDB;
- (void)closeDB;

- (void)createTable;
- (void)deleteTable;
- (void)insertDataWithStudent:(Student *)stu;
- (void)deleteDataWithNumber:(NSInteger)num;
- (void)updateData:(Student *)stu num:(NSInteger)num;
- (NSMutableArray *)searchDB;
- (NSMutableArray *)searchBySex:(NSString *)sex;
@end
